package pl.edu.utp.kursy.database;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

@Entity
@Table(name = "inovice_rows")
public class InoviceRow extends BaseId{
    
    @Column(name = "lp")
    private int lp;
    
    @Column(name = "name")
    private String name;
    
    @Column(name = "pkwiu")
    private String PKWIU;
    
    @Column(name = "amount")
    private int amount;
    
    @Column(name = "unit")
    private String unit;
    
    @Column(name = "vat")
    private int vat;
    
    @Column(name = "price_netto")
    private double priceNetto;
    
    @Column(name = "value_netto")
    private double valueNetto;
    
    @Column(name = "value_vat")
    private double valueVat;
    
    @Column(name = "value_brutto")
    private double valueBrutto;
    
    @ManyToOne(fetch = FetchType.EAGER)
    private Inovice inovice;

    public int getLp() {
        return lp;
    }

    public void setLp(int lp) {
        this.lp = lp;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPKWIU() {
        return PKWIU;
    }

    public void setPKWIU(String PKWIU) {
        this.PKWIU = PKWIU;
    }

    public int getAmount() {
        return amount;
    }

    public void setAmount(int amount) {
        this.amount = amount;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getVat() {
        return vat;
    }

    public void setVat(int vat) {
        this.vat = vat;
    }

    public double getPriceNetto() {
        return priceNetto;
    }

    public void setPriceNetto(double priceNetto) {
        this.priceNetto = priceNetto;
    }

    public double getValueNetto() {
        return valueNetto;
    }

    public void setValueNetto(double valueNetto) {
        this.valueNetto = valueNetto;
    }

    public double getValueVat() {
        return valueVat;
    }

    public void setValueVat(double valueVat) {
        this.valueVat = valueVat;
    }

    public double getValueBrutto() {
        return valueBrutto;
    }

    public void setValueBrutto(double valueBrutto) {
        this.valueBrutto = valueBrutto;
    }

    public Inovice getInovice() {
        return inovice;
    }

    public void setInovice(Inovice inovice) {
        this.inovice = inovice;
    }
    
}
